package bishihuizong;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created by JiaJia on 2019/9/15 0015.
 */
public class ZhaoHang01 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String s=scanner.nextLine();
        int[] res=new int[s.length()];
        res=solution(s);
        for (int i = 0; i <res.length ; i++) {
            System.out.println(res[i]+" ");
        }
    }
    public static int[] solution(String s){
        List<Integer> list=new ArrayList<>();
        List<Integer> num=new ArrayList<>();
        int[] res=new int[s.length()];
        boolean flag=false;
        int count=0;
        for (int i = 0; i <s.length() ; i++) {
            count++;
            if (flag==false&&s.charAt(i)=='L'){
                list.add(i);
                flag=true;
            }
            if (flag==true&&s.charAt(i)=='R'){
                flag=false;
                num.add(count-1);
                count=1;
            }
        }
        int sum=0;
        for (int i = 0; i <num.size() ; i++) {
            sum+=num.get(i);
        }
        num.add(s.length()-sum);
        for (int i = 0; i <list.size() ; i++) {
            if (num.get(i)%2==0){
                res[list.get(i)]=num.get(i)/2;
                res[list.get(i)-1]=num.get(i)/2;
            }else {
                res[list.get(i)-1]=num.get(i)/2;
                res[list.get(i)]=num.get(i)/2+1;
            }
        }
        return res;
    }

}